HAL CRYP macro migration

This section provides information about the HAL CRYP macro migration.

HAL CRYP macros

HAL1

HAL2

__HAL_CRYP_ENABLE_IT(__HANDLE__, __INTERRUPT__)
void HAL_CRYP_EnableIT(hal_cryp_handle_t *hcryp, uint32_t interrupt)
__HAL_CRYP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
uint32_t HAL_CRYP_GetITSource(const hal_cryp_handle_t *hcryp,
                              uint32_t interrupt)
__HAL_CRYP_GET_FLAG(__HANDLE__, __FLAG__)
uint32_t HAL_CRYP_GetFlag(const hal_cryp_handle_t *hcryp,
                          uint32_t flag)
__HAL_CRYP_ENABLE(__HANDLE__)
  • Removed; no user-facing macro in HAL2.

__HAL_CRYP_DISABLE(__HANDLE__)
  • Removed; no user-facing macro in HAL2.

__HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__)
  • Removed; use HAL_CRYP_DeInit() instead when you need to reset all states.

__HAL_CRYP_DISABLE_IT(__HANDLE__, __INTERRUPT__)
__HAL_CRYP_CLEAR_IT(__HANDLE__, __INTERRUPT__)
void HAL_CRYP_DisableIT(hal_cryp_handle_t *hcryp, uint32_t interrupt)
__HAL_CRYP_SET_OPERATINGMODE(__HANDLE__, __OPERATING_MODE__)
  • Removed; operating mode is set within HAL_CRYP_Encrypt() or HAL_CRYP_Decrypt().

__HAL_CRYP_SET_CHAININGMODE(__HANDLE__, __CHAINING_MODE__)
  • Removed; chaining mode is configured via specific set-config functions.

Related concept: Replaced multi-line macros with inline functions